package com.ruoyi.business.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.business.domain.TCooperateInfo;
import com.ruoyi.business.vo.TCooperateInfoVo;
import com.ruoyi.business.mapper.TCooperateInfoMapper;
import com.ruoyi.business.service.ITCooperateInfoService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 合作项目Service业务层处理
 *
 * @author Tellsea
 * @date 2024-07-22
 */
@Service
public class TCooperateInfoServiceImpl extends ServiceImpl<TCooperateInfoMapper, TCooperateInfo> implements ITCooperateInfoService {

    @Override
    public TableDataInfo<TCooperateInfoVo> queryList(TCooperateInfoVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<TCooperateInfoVo> queryAll(TCooperateInfoVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public TCooperateInfoVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
